﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmStatusAtendimento.aspx.cs" Inherits="WEBRM.WebUI.frmStatusAtendimento"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 42%;
        }
        .style2
        {
            width: 12%;
        }
        .style3
        {
            width: 19%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ConteudoGeral" runat="server">
<br />
    <asp:Button ID="btnNovo" runat="server" Text="Nova" onclick="btnNovo_Click"  /> 
    <br /><br />
    <asp:Panel ID="pnlPesquisa" runat="server">
        <fieldset>
            <legend>Pesquisar</legend>
            
            <table width="100%">
                <tr>
                    <td class="style1">
                        Nome</td>
                    <td class="style2">&nbsp;</td>
                    <td class="style3">
                    </td>
                    <td  width="24%"></td>
                </tr>
                <tr>
                    <td class="style1"><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
                    <td class="style2">
                        <asp:CheckBox ID="chkPadrao0" runat="server" Text="Status padrão?" />
                    </td>
                    <td class="style3">
                        <asp:CheckBox ID="chkEncerramento0" runat="server" 
                            Text="Status de conclusão?" />
                    </td>
                    <td><asp:Button ID="btnPesquisar" runat="server" Text="Pesquisar" 
                            onclick="btnPesquisar_Click" /></td>
                </tr>
            </table>
        </fieldset>
    </asp:Panel>
    <asp:Panel ID="pnlCadastro" runat="server" Visible="false">
        <asp:ValidationSummary ID="vlsumDados" runat="server" CssClass="validation" 
            ForeColor="" ValidationGroup="0" 
            HeaderText="Verifique os seguintes alertas." />
        Nome<br />
        <asp:TextBox ID="txtPergunta" runat="server" MaxLength="255" Rows="3"></asp:TextBox>
        <br />
        Configurações:<br />
        <asp:CheckBox ID="chkPadrao" runat="server" Text="Status padrão?" />
        <asp:CheckBox ID="chkEncerramento" runat="server" Text="Status de conclusão?" />
        <br />
        <br />
        <br />
        <asp:Button ID="btnSalvar" runat="server" Text="Salvar" 
            onclick="btnSalvar_Click" ValidationGroup="0" />
        &nbsp;<asp:Button ID="btnCancelar" runat="server" onclick="btnCancelar_Click" 
            Text="Cancelar" />
    </asp:Panel>
    <asp:Panel ID="pnlGrid" runat="server">
        <asp:GridView ID="gv" runat="server" Width="100%" AutoGenerateColumns="False" 
            BorderStyle="None" onrowcommand="gv_RowCommand" BorderWidth="0px">
            <RowStyle CssClass="GridRow" />
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:ImageButton ID="btnEditar" runat="server" 
                            CommandArgument='<%# Eval("Id") %>' CommandName="EDITAR" 
                            ImageUrl="~/_images/icone_editar.png" ToolTip="Editar registro" Width="24px" OnClientClick="return confirm('Deseja alterar o registro?')" />
                    </ItemTemplate>
                    <HeaderStyle Width="26px" />
                    <ItemStyle Width="24px" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:ImageButton ID="btnExcluir" runat="server" 
                            CommandArgument='<%# Eval("Id") %>' CommandName="EXCLUIR" 
                            ImageUrl="~/_images/icone_excluir.gif" ToolTip="Excluir registro" 
                            Width="24px" OnClientClick="return confirm('Deseja excluir o registro?')" />
                    </ItemTemplate>
                    <HeaderStyle Width="26px" />
                    <ItemStyle Width="24px" />
                </asp:TemplateField>
                <asp:BoundField DataField="Nome" HeaderText="Status" />
                <asp:CheckBoxField DataField="Padrao" HeaderText="Status padrão?" />
                <asp:CheckBoxField DataField="Conclusao" HeaderText="Status de conclusão?" />
            </Columns>
            <EmptyDataTemplate>
                Não existe registros cadastrado!
            </EmptyDataTemplate>
            <HeaderStyle CssClass="GridHeader" />
        </asp:GridView>
    </asp:Panel>
</asp:Content>
